package amc;

import java.util.Arrays;
import java.util.BitSet;
import java.util.Scanner;

/**
 * @className: HJ1
 * @Description:
 * @Author: wangyifei
 * @Date: 2024/3/18 20:18
 */
public class HJ1 {
    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        while (scanner.hasNextLine()) {
//            String line = scanner.nextLine();
//            String[] words = line.split("\\s+");
//            System.out.println(line);
//            System.out.println(Arrays.toString(words));
//        }
        System.out.println("X".matches("^[ADWS]+\\d{1,}$"));
    }
}
